package practical_projects.games.submarine_war;

public abstract class Submarine extends Weapon{
    protected SubmarineType submarineType;    // 潜艇类型

    public Submarine(SubmarineType submarineType, int width, int height) {
        super(width, height);
        this.submarineType = submarineType;
    }

    @Override
    public void move() {
        x += speed;
    }
}
